{% extends 'partials/base.html' %}
{% block title %}职员信息列表{% endblock %}
{% load crispy_forms_tags %}
{% block content %}
<table class="table">
    <thead>
        <tr>
            <th>用户名</th>
            <th>电话</th>
            <th>邮箱</th>
            <th>地址</th>
        </tr>
    </thead>
    <tbody>
    {% for worker in workers %}
    <tr>
        <td>{{ worker.username }}</td>
        <td>{{ worker.profile.phone }}</td>
        <td>{{ worker.email }}</td>
        <td>{{ worker.profile.address }}</td>
        <!-- 在职员列表的每一行添加查看按钮 -->
        <td>
            <a href="{% url 'dashboard-staff-detail' worker.id %}">查看</a>
        </td>
    </tr>
    {% endfor %}
    </tbody>
</table>
{% endblock %}